package com.hdoit.ares.web.advertisement.modelconfig;
import com.hdoit.ares.web.advertisement.providers.AdLocationIdListProvider;
import com.tennetcn.component.attribute.DateTimeAttribute;
import com.tennetcn.common.enums.regular.MathRegularExpressions;
import com.tennetcn.component.attribute.DisplayNameAttribute;
import com.tennetcn.component.attribute.DropDownListAttribute;
import com.tennetcn.component.attribute.RequiredAttribute;
import com.tennetcn.component.attribute.RegularExpressionAttribute;
import com.tennetcn.component.attribute.base.ModelMetadataAttributeConfiguration;

/**
 * @author      yujinhui
 * @email       
 * @createtime  2018年03月13日 19:26:53
 * @comment
 */
public class AdvertisementSearchConfig extends ModelMetadataAttributeConfiguration{
    public AdvertisementSearchConfig(){
  
        this.setProperty("adLocationId")
            .hasAttribute(new DisplayNameAttribute("广告位置"))
            .hasAttribute(new DropDownListAttribute(new AdLocationIdListProvider()));

        
        this.setProperty("name")
            .hasAttribute(new DisplayNameAttribute("广告名称"));

    }
}